package com.funcourse.demo.sms;

import java.util.ArrayList;
import java.util.List;
import org.springframework.util.CollectionUtils;

public class VCodeFunctionHolder {
	
	private List<String> smsFunctions;
	
	public VCodeFunctionHolder() {
		this.smsFunctions=new ArrayList<>();
	}
	
	public Boolean contains(String func) {
		if(CollectionUtils.isEmpty(smsFunctions)) {
			return false;
		}
		return smsFunctions.contains(func);
	}
	
	public void add(String func) {
		this.smsFunctions.add(func);
	}

	public List<String> getSmsFunctions() {
		return smsFunctions;
	}

	public void setSmsFunctions(List<String> smsFunctions) {
		this.smsFunctions = smsFunctions;
	}

}
